// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

package com.nnee.p_o.p_a;

import com.nnee.p_pr.p_atom.cls_u;
import java.net.URLEncoder;
import org.json.JSONArray;
import org.json.JSONObject;

// Referenced classes of package com.nnee.o.a:
//            b

public class cls_c
{

    public cls_c(JSONObject jsonobject)
    {
        a = jsonobject.optString("docid");
        b = jsonobject.optString("body");
        c = jsonobject.optString("title");
        d = jsonobject.optString("replyBoard");
        f = jsonobject.optInt("replyCount");
        e = jsonobject.optString("source");
        g = jsonobject.optBoolean("hasNext");
        JSONArray jsonarray = jsonobject.optJSONArray("img");
        if(jsonarray != null)
        {
            h = new cls_b[jsonarray.length()];
            for(int i1 = 0; i1 < h.length; i1++)
                h[i1] = new cls_b(jsonarray.optJSONObject(i1));

        }
        i = jsonobject.optString("ptime");
    }

    public String a()
    {
        return a;
    }

    public String b()
    {
        return b;
    }

    public String c()
    {
        return c;
    }

    public String d()
    {
        return d;
    }

    public String e()
    {
        return e;
    }

    public int f()
    {
        return f;
    }

    public boolean g()
    {
        return g;
    }

    public cls_b[] h()
    {
        return h;
    }

    public String i()
    {
        return i;
    }

    public cls_u j()
    {
        cls_u u1 = new cls_u();
        u1.h(true);
        u1.q(a);
        u1.r(c);
        if(h != null)
        {
            for(int i1 = 0; i1 < h.length; i1++)
            {
                String s1 = b;
                String s2 = h[i1].a();
                StringBuilder stringbuilder = (new StringBuilder()).append("<div style=\"width:145px;height:138px;float:right;clear:right;overflow:hidden;\">");
                Object aobj[] = new Object[2];
                aobj[0] = (new StringBuilder()).append("file:///android_asset/img?id=").append(i1 + 1).append("&url=").append(URLEncoder.encode(h[i1].c())).toString();
                aobj[1] = Integer.valueOf(i1 + 1);
                b = s1.replace(s2, stringbuilder.append(String.format("<img src='%s' id='%d'/>", aobj)).append("</div>").toString());
            }

        }
        u1.j(b);
        return u1;
    }

    private static final String j = "docid";
    private static final String k = "body";
    private static final String l = "title";
    private static final String m = "replyBoard";
    private static final String n = "source";
    private static final String o = "replyCount";
    private static final String p = "hasNext";
    private static final String q = "ptime";
    private static final String r = "img";
    private static final String s = "ref";
    private static final String t = "alt";
    private static final String u = "src";
    String a;
    String b;
    String c;
    String d;
    String e;
    int f;
    boolean g;
    cls_b h[];
    String i;
}
